package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldRestbreaksCalendarMapper;
import com.cleaningcloud.cld.domain.CldRestbreaksCalendar;
import com.cleaningcloud.cld.service.ICldRestbreaksCalendarService;

/**
 * 排休日历Service业务层处理
 *
 * @author cleaningcloud
 * @date 2024-11-08
 */
@Service
public class CldRestbreaksCalendarServiceImpl implements ICldRestbreaksCalendarService
{
    @Autowired
    private CldRestbreaksCalendarMapper cldRestbreaksCalendarMapper;

    /**
     * 查询排休日历
     *
     * @param restbreakCalendarId 排休日历主键
     * @return 排休日历
     */
    @Override
    public CldRestbreaksCalendar selectCldRestbreaksCalendarByRestbreakCalendarId(Long restbreakCalendarId)
    {
        return cldRestbreaksCalendarMapper.selectCldRestbreaksCalendarByRestbreakCalendarId(restbreakCalendarId);
    }

    /**
     * 查询排休日历列表
     *
     * @param cldRestbreaksCalendar 排休日历
     * @return 排休日历
     */
    @Override
    public List<CldRestbreaksCalendar> selectCldRestbreaksCalendarList(CldRestbreaksCalendar cldRestbreaksCalendar)
    {
        return cldRestbreaksCalendarMapper.selectCldRestbreaksCalendarList(cldRestbreaksCalendar);
    }

    /**
     * 新增排休日历
     *
     * @param cldRestbreaksCalendar 排休日历
     * @return 结果
     */
    @Override
    public int insertCldRestbreaksCalendar(CldRestbreaksCalendar cldRestbreaksCalendar)
    {
        return cldRestbreaksCalendarMapper.insertCldRestbreaksCalendar(cldRestbreaksCalendar);
    }

    /**
     * 修改排休日历
     *
     * @param cldRestbreaksCalendar 排休日历
     * @return 结果
     */
    @Override
    public int updateCldRestbreaksCalendar(CldRestbreaksCalendar cldRestbreaksCalendar)
    {
        return cldRestbreaksCalendarMapper.updateCldRestbreaksCalendar(cldRestbreaksCalendar);
    }

    /**
     * 批量删除排休日历
     *
     * @param restbreakCalendarIds 需要删除的排休日历主键
     * @return 结果
     */
    @Override
    public int deleteCldRestbreaksCalendarByRestbreakCalendarIds(Long[] restbreakCalendarIds)
    {
        return cldRestbreaksCalendarMapper.deleteCldRestbreaksCalendarByRestbreakCalendarIds(restbreakCalendarIds);
    }

    /**
     * 删除排休日历信息
     *
     * @param restbreakCalendarId 排休日历主键
     * @return 结果
     */
    @Override
    public int deleteCldRestbreaksCalendarByRestbreakCalendarId(Long restbreakCalendarId)
    {
        return cldRestbreaksCalendarMapper.deleteCldRestbreaksCalendarByRestbreakCalendarId(restbreakCalendarId);
    }
}
